<html>
<head>
	<TITLE>Hệ thống quản lý phòng họp cho thuê</TITLE>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="lib/images/favicon.ico" type="image/x-icon" rel="icon" />
    <link href="lib/images/favicon.ico" type="image/x-icon" rel="shortcut icon" />
	<?php include_once 'lib/style.php';?>
    <script type='text/javascript'>
		$(document).ready(function(){
		//$("#birthday").datepicker({dateFormat:"dd-mm-yy"});
	});
	</script>
	
	<script type="text/javascript" src="lib/scripts.js"></script>
</head>
<body>
<div id='left'>
	<div id="menu">
		<div class='title' style="width:97.5%"><?php include_once 'data/loadInformationUser.php'?></div>
		<ul id="red" class="treeview-red">
			<li><span>Trang chủ</span>
				<ul>
					<li style="padding-bottom:5px;"><a href=""><img src="lib/images/icon-home.jpg">&nbsp;<span >Trở về trang chủ </span></a></li>
					<li><a href="javascript:logout()"><span><img src="lib/images/icon_logout.jpg">&nbsp;Thoát khỏi hệ thống </span></a></li>
				</ul>
			</li>
			<?php include_once 'data/loadMenu.php' ?>
		</ul>	
    </div>		    	
 </div>
<div id="right">
<?php include_once 'data/room/index.php';?>
</div>
<div id="footer" style=""> 
	
</div>
<div id="footer2" style=""> 
	Meeting room management system
	<br>
	Team 03 - Hedspi
</div>	    
</body>
<script type="text/javascript">  
$(document).ready(function(){
    
});

function logout(){
		//alert('aaaa');
		$.ajax({
			url:"logout.php",
  			data:'',
			success: function(data) {
			//alert(data);
			window.location.href="index.php";
			}
		});
	}
function checkValue(_url){
	//alert(_url);
	$.ajax({
			url:_url,
  			data:'',
			success: function(data) {
			//alert(data);
			//window.location.href="index.php";
			$("#right").html(data);
			}
		});	
}
</script>
</html>